#include <Servo.h>
Servo s;
int ss=0;
int x=5;
void setup() {
  // put your setup code here, to run once:
  s.attach(9);
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
  s.write(ss);
  ss+=x;
  if(ss==180)
    x=-5;
  if(ss==0)
    x=5;
  delay(100);
}
